<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {#  下面这句代码又可以反 防盗链  #}
    <meta name="referrer" content="never">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../static/css/bootstrap.css">
    <script src="../static/js/jquery-1.12.4.min.js"></script>
    <script src="../static/js/bootstrap.js"></script>
    <title>微信文章</title>
</head>

<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#example-navbar-collapse">
            <span class="sr-only">切换导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">微信文章精选</a>
    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">iOS</a></li>
            <li><a href="#">SVN</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    Java <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#">jmeter</a></li>
                    <li><a href="#">EJB</a></li>
                    <li><a href="#">Jasper Report</a></li>
                    <li class="divider"></li>
                    <li><a href="#">分离的链接</a></li>
                    <li class="divider"></li>
                    <li><a href="#">另一个分离的链接</a></li>
                </ul>
            </li>
        </ul>
    </div>
    </div>
</nav>

{#居中标题#}
<h2 style="text-align: center; color: #4cae4c">微信公众号文章精选</h2>
    <hr>
    <ul>
        {% for item in data %}
        <li style="height: 161px; list-style: none">
{#            <div style="width: 160px;float: right">#}
{#                <img src="{{ item.img }}" alt="img" style="height: 120px; width: auto; margin-left: -26.5px;">#}
{#            </div>#}
            <div class="row">
                <div>
                    <h3><a href="{{ item.url }}" target="_blank">{{ item.title }}</a><br></h3>
                    <p style="height: 54px">{{ item.summary }}</p>
                </div>
                <div class="col-sm-6 col-md-3" style="float: right;width: 187px">
                    <a class="thumbnail">
                        <img src="{{ item.img }}" alt="通用的占位符缩略图">
                    </a>
                </div>
            </div>
        </li>
            <hr>
        {% endfor %}
    </ul>
    <button id="fat-btn" class="btn btn-primary" data-loading-text="Loading..." type="button"> 加载状态
    </button>
    <script>
        $(function() {
            $(".btn").click(function(){
                $(this).button('loading').delay(1000).queue(function() {
                // $(this).button('reset');
                // $(this).dequeue();
                });
            });
        });
    </script>
</body>
</html>